#pragma once
#include "Chartconfig.h"

class CChartdata
{
public:
	CChartdata(void);
	~CChartdata(void);

public:
	typedef struct __ITEM
	{
		float fOrigin;
		float fDest;
		float fIntv;
		int Hour;
		int Min;
		int Sec;
		int Year;
		int Month;
		int Day;				
	} __ITEM;

public:
	CArray<__ITEM*, __ITEM*> lstData;
	//CArray<__ITEM*, __ITEM*> copyData;
	float nYMin;
	float nYMax;
	float nXMin;
	float nXMax;

public:
	Chartconfig m_config;
	int Add(float fOrgin, float fDest, int hour, int min, int sec, int year, int month,	int day);
	void Clear(int origin);
	void dataCopy();

};

